package cn.com.nes.site.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ProductAddRequest对象", description="商品添加对象")
public class ProductAddRequest implements Serializable {

    private static final long serialVersionUID = -452373239606480650L;

    @ApiModelProperty(value = "商品id|添加时不填，修改时必填")
    private Integer id;

    @ApiModelProperty(value = "基础类型：0=普通商品,1-积分商品,2-虚拟商品,4=视频号,5-云盘商品,6-卡密商品", required = true)
    private Integer type;

    @ApiModelProperty(value = "商品图片", required = true)
    private String image;

    @ApiModelProperty(value = "展示图")
    private String flatPattern;

    @ApiModelProperty(value = "轮播图", required = true)
    private String sliderImage;

    @ApiModelProperty(value = "商品名称", required = true)
    private String name;

    @ApiModelProperty(value = "商品简介", required = true)
    private String intro;

    @ApiModelProperty(value = "关键字", required = true)
    private String keyword;

    @ApiModelProperty(value = "商户商品分类id|逗号分隔", required = true)
    private String cateId;

    @ApiModelProperty(value = "商户商品分类")
    private String cateName;

    @ApiModelProperty(value = "品牌id", required = true)
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "平台分类id", required = true)
    private Integer categoryId;

    @ApiModelProperty(value = "平台分类")
    private String categoryName;

    @ApiModelProperty(value = "保障服务ids(英文逗号拼接)")
    private String guaranteeIds;

    @ApiModelProperty(value = "单位名", required = true)
    private String unitName;

    @ApiModelProperty(value = "运费模板ID", required = true)
    private Integer tempId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "规格 0单 1多", required = true)
    private Boolean specType;

    @ApiModelProperty(value = "是否单独分佣", required = true)
    private Boolean isSub;

    @ApiModelProperty(value = "商品描述")
    private String content;

    @ApiModelProperty(value = "优惠券id集合")
    private List<Integer> couponIds;

    @ApiModelProperty(value = "是否付费会员商品")
    private Boolean isPaidMember;

    @ApiModelProperty(value = "是否自动上架")
    private Boolean isAutoUp = false;

    @ApiModelProperty(value = "是否自动提审")
    private Boolean isAutoSubmitAudit = false;

    @ApiModelProperty(value = "配送方式：1-商家配送，2-到店核销,逗号拼接")
    private String deliveryMethod;

    @ApiModelProperty(value = "是否支持退款")
    private Boolean refundSwitch = true;

    @ApiModelProperty(value = "系统表单ID")
    private Integer systemFormId = 0;

    @ApiModelProperty(value = "商户ID")
    private Integer merId = 0;

    @ApiModelProperty(value = "商品属性", required = true)
    private List<ProductAttrAddRequest> attr;

    @ApiModelProperty(value = "商品属性详情", required = true)
    private List<ProductAttrValueAddRequest> attrValue;
}

